<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/29 14:26
 * Modified Time: 2019/8/29 14:26
 * Version: 2.0
 */

namespace App\Modules\Service\Validators;


class ServiceControllerValidator
{
    public static function validator()
    {
        return [
            'createService' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'name' => [
                    'title' => '服务名称',
                    'rule' => 'required',
                    'message' => []
                ],
                'royalty' => [
                    'title' => '服务提成',
                    'rule' => 'required',
                    'message' => []
                ],
            ],
            'getServiceList' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getServiceListPage' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'editService' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'id' => [
                    'title' => '服务id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'isOff' => [
                'service_id' => [
                    'title' => '服务id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'delService' => [
                'id' => [
                    'title' => '服务id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
        ];
    }
}